<?php
declare (strict_types = 1);
namespace come;

use come\traits\Jump;

class Controller
{
    use Jump;
    protected $request;

    function __construct()
    {
        $this->request = Request::instance();
    }

    /**
     * 模版变量赋值
     * @param $name
     * @param $value
     */
    function assign($name,$value = ''){
        View::instance()->assign($name,$value);
    }
}
